projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bf890d
)
(Fprocess_send_eof): Abort if fail to open null device.
author
Richard M. Stallman
<rms@gnu.org>
Wed, 12 Apr 2006 15:01:37 +0000
(15:01 +0000)
committer
Richard M. Stallman
<rms@gnu.org>
Wed, 12 Apr 2006 15:01:37 +0000
(15:01 +0000)
src/process.c
patch
|
blob
|
history
diff --git
a/src/process.c
b/src/process.c
index 29c93052369c49fab11bc70ee1fddde974d2b327..a17ef0e0915e9c35051ed9beb3fce794504119b3 100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-6234,6
+6234,8
@@
text to PROCESS after you call this function. */)
emacs_close (XINT (XPROCESS (proc)->outfd));
#endif /* not HAVE_SHUTDOWN */
new_outfd = emacs_open (NULL_DEVICE, O_WRONLY, 0);
+ if (new_outfd < 0)
+ abort ();
old_outfd = XINT (XPROCESS (proc)->outfd);
if (!proc_encode_coding_system[new_outfd])